<template>

  <div class="inject">
    <h1 v-for="(item,index) in user">This is an inject page 姓名:{{item.name}} 年龄:{{item.age}}</h1>
  </div>
</template>
<script>


export default {
  inject:["user"],
  data() {
    return {
     
    }
  },
  created() {
    console.log(this.user);
  }
}
</script>
<style>
</style>
